package com.easyweb.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyweb.dao.TagDao;
import com.easyweb.model.Tag;
import com.easyweb.service.TagService;

@Service
public class TagServiceImpl implements TagService{
	
	@Autowired
	private TagDao tagDao;

	public int insertTag(Tag tag) {
		return tagDao.insertTag(tag);
	}

	public int deleteTagById(Map<String, Object> map) {
		return tagDao.deleteTagById(map);
	}

	public int updateTag(Tag tag) {
		return tagDao.updateTag(tag);
	}

	public List<Tag> getTags(Map<String, Object> map) {
		return tagDao.getTags(map);
	}

	public Tag getTagById(Map<String, Object> map) {
		return tagDao.getTagById(map);
	}

}
